package model;

import java.util.Calendar;
import java.util.Date;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import com.fasterxml.jackson.annotation.JsonIgnore;

@XmlRootElement(name = "movie")
public class Movie {

	private int internID;
	private String imdbtt;
	private String titel;
	private Calendar publicationDate;
	private int duration;
	private String director;
	private String description;

	public Movie() { }

	public Movie(int internID, String imdbtt, String titel, Calendar publicationDate,
			int duration, String director, String description) {
		this.internID = internID;
		this.imdbtt = imdbtt;
		this.titel = titel;
		this.publicationDate = publicationDate;
		this.duration = duration;
		this.director = director;
		this.description = description;
	}

	@XmlTransient
	@JsonIgnore
	public int getInternID() {
		return internID;
	}

	@XmlAttribute
	public String getImdbtt() {
		return imdbtt;
	}

	@XmlElement
	public String getTitel() {
		return titel;
	}

	@XmlElement
	public Calendar getPublicationDate() {
		return publicationDate;
	}

	@XmlElement
	public int getDuration() {
		return duration;
	}

	@XmlElement
	public String getDescription() {
		return description;
	}
	
	@XmlElement
	public String getDirector() {
		return director;
	}
}
